package com.cinc.ebc.fi.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cinc.ebc.fi.entity.FiReceiveVoucherDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cinc.ebc.fi.model.*;
import com.cinc.ebc.fi.vo.FiCustomerReceiveDetailPage;
import com.cinc.ebc.fi.vo.FiPaymentVoucherDetailPage;
import com.cinc.ebc.fi.vo.FiReceiveVoucherDetailPage;
import com.cinc.ebc.fi.vo.FiSupplyPaymentDetailPage;
import org.apache.ibatis.annotations.Param;

/**
 * @Description: 收款明细
 * @Author: jeecg-boot
 * @Date:   2022-12-17
 * @Version: V1.0
 */
public interface FiReceiveVoucherDetailMapper extends BaseMapper<FiReceiveVoucherDetail> {

	public boolean deleteByMainId(@Param("mainId") String mainId);

	public List<FiReceiveVoucherDetail> selectByMainId(@Param("mainId") String mainId);

	List<FiReceiveVoucherDetailModel> selectDetailList(Page<FiReceiveVoucherDetailModel> page,
													   @Param("param") FiReceiveVoucherDetailPage param,
													   @Param("permissionSql") String permissionSql);

	List<FiCustomerReceiveDetailModel> selectCustomerReceiveList(Page<FiCustomerReceiveDetailModel> page,
																 @Param("param") FiCustomerReceiveDetailPage param,
																 @Param("permissionSql") String permissionSql);

	List<FiCustomerAdvanceReceiveDetailModel> selectCustomerAdvanceReceiveList(Page<FiCustomerAdvanceReceiveDetailModel> page,
																			   @Param("param") FiCustomerReceiveDetailPage param,
																			   @Param("permissionSql") String permissionSql);
}
